package dat02;

import java.util.Scanner;

public class Test03 {
    /**
     * 输入一个IP地址，然后将4段数字分别输出
     * @author Admin
     *
     */
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入一个IP地址");
        String ip = in.nextLine();
        String[] ipArr = ip.split("\\.");
        for (String s : ipArr){
            System.out.println(s);
        }
    }
}
